package com.itheima.manager.heroManager;
//英雄类
import java.util.Scanner;

public abstract class Hero {
    private String name;
    private int hp;
    private int mp;
    private int gj;
    private int fy;
    Scanner sc=new Scanner(System.in);
    SKill s=new SKill();

    public Hero(String name, int hp, int mp, int gj, int fy) {
        this.name = name;
        this.hp = hp;
        this.mp = mp;
        this.gj = gj;
        this.fy = fy;
    }

    public Hero() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getMp() {
        return mp;
    }

    public void setMp(int mp) {
        this.mp = mp;
    }

    public int getGj() {
        return gj;
    }

    public void setGj(int gj) {
        this.gj = gj;
    }

    public int getFy() {
        return fy;
    }

    public void setFy(int fy) {
        this.fy = fy;
    }

    public abstract void jiNeng1();
    public abstract void jiNeng2();
    public abstract void jiNeng3();
    public abstract void speak1();
    public abstract void speak2();
    public abstract void speak3();


    public  void start(){
        Scanner sc=new Scanner(System.in);
        int choice = sc.nextInt();
        switch (choice){
            case 1:
                jiNeng1();
                show();
                break;
            case 2:
                jiNeng2();
                show();
                break;
            case 3:
                jiNeng3();
                show();
                break;
            case 4:
                System.out.println("功成名就，退场");
                System.exit(0);
        }
    }

    public  void show(){

        System.out.println("英雄"+name+"  hp:"+hp+"    mp:"+mp+"    gj:"+gj+"    fy:"+fy);
    }
}
